package com.yeebo.dao.config;

import com.github.pagehelper.Page;
import com.yeebo.model.config.GlobalParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

@Mapper
public interface GlobalParamDao {

    /**
     * 根据参数名称查找对应匹配的全局参数数据
     */
    GlobalParam findByParamName(@Param("paramName") String paramName);

    int add(GlobalParam globalParam);

    int update(GlobalParam globalParam);

    Page<GlobalParam> loadGlobalParamList(Map<String, Object> queryMap);

}
